	public function getListParams()
	{
		return <?php echo $this->asPhp(isset($this->config['list']['params']) ? $this->config['list']['params'] : '%%'.implode('%% - %%', isset($this->config['list']['display']) ? $this->config['list']['display'] : $this->getAllFieldNames(false)).'%%') ?>;
<?php unset($this->config['list']['params']) ?>
	}

	public function getListLayout()
	{
		return '<?php echo isset($this->config['list']['layout']) ? $this->config['list']['layout'] : 'tabular' ?>';
<?php unset($this->config['list']['layout']) ?>
	}

	public function getListTitle()
	{
		return '<?php echo $this->escapeString(isset($this->config['list']['title']) ? $this->config['list']['title'] : sfInflector::humanize($this->getModuleName()).' List') ?>';
<?php unset($this->config['list']['title']) ?>
	}

	public function getEditTitle()
	{
		return '<?php echo $this->escapeString(isset($this->config['edit']['title']) ? $this->config['edit']['title'] : 'Edit '.sfInflector::humanize($this->getModuleName())) ?>';
<?php unset($this->config['edit']['title']) ?>
	}

	public function getNewTitle()
	{
		return '<?php echo $this->escapeString(isset($this->config['new']['title']) ? $this->config['new']['title'] : 'New '.sfInflector::humanize($this->getModuleName())) ?>';
<?php unset($this->config['new']['title']) ?>
	}

	public function getReadableName()
	{
		return '<?php echo $this->getReadableName() ?>';
	}

	public function getFilterDisplay()
	{
		return <?php echo $this->asPhp(isset($this->config['filter']['display']) ? $this->config['filter']['display'] : array()) ?>;
<?php unset($this->config['filter']['display']) ?>
	}

	public function getFormDisplay()
	{
		return <?php echo $this->asPhp(isset($this->config['form']['display']) ? $this->config['form']['display'] : array()) ?>;
<?php unset($this->config['form']['display']) ?>
	}

	public function getEditDisplay()
	{
		return <?php echo $this->asPhp(isset($this->config['edit']['display']) ? $this->config['edit']['display'] : array()) ?>;
<?php unset($this->config['edit']['display']) ?>
	}

	public function getNewDisplay()
	{
		return <?php echo $this->asPhp(isset($this->config['new']['display']) ? $this->config['new']['display'] : array()) ?>;
<?php unset($this->config['new']['display']) ?>
	}

	public function getListDisplay()
	{
<?php if (isset($this->config['list']['display'])): ?>
		return <?php echo $this->asPhp($this->config['list']['display']) ?>;
<?php elseif (isset($this->config['list']['hide'])): ?>
		return <?php echo $this->asPhp(array_diff($this->getAllFieldNames(false), $this->config['list']['hide'])) ?>;
<?php else: ?>
		return <?php echo $this->asPhp($this->getAllFieldNames(false)) ?>;
<?php endif; ?>
<?php unset($this->config['list']['display'], $this->config['list']['hide']) ?>
	}

	public function getFieldsDefault()
	{
		return array(
<?php foreach ($this->getDefaultFieldsConfiguration() as $name => $params): ?>
			'<?php echo $name ?>' => <?php echo $this->asPhp($params) ?>,
<?php endforeach; ?>
		);
	}

<?php foreach (array('list', 'filter', 'form', 'edit', 'new') as $context): ?>
	public function getFields<?php echo ucfirst($context) ?>()
	{
		return array(
<?php foreach ($this->getFieldsConfiguration($context) as $name => $params): ?>
			'<?php echo $name ?>' => <?php echo $this->asPhp($params) ?>,
<?php endforeach; ?>
		);
	}
<?php endforeach; ?>

	public function getFieldsCompare()
	{
		return array(
<?php if ($this->isAuditableModel()): ?>
<?php foreach ($this->getCompareFieldsConfiguration() as $name => $params): ?>
			'<?php echo $name ?>' => <?php echo $this->asPhp($params) ?>,
<?php endforeach; ?>
<?php endif; ?>
		);
	}
